/**
 * 列表项
 * label：列表项名称
 * prop：列表项对应数据key
 * input：列表项搜索类型（input、select、dateTime）
 */
 export const baseColumns = [
  {
    label: "菜单ID",
    prop: "selfid",
    input: "input",
},
{
    label: "url地址",
    prop: "url",
    input: "input",
},
{
    label: "菜单级别",
    prop: "wmwhse",
    input: "input",
},

{
    label: "菜单名",
    prop: "description",
    input: "input",
},
{
    type: "input",
    label: "图标",
    props: "icon",
},
{
    label: "父级ID",
    prop: "parentid",
    input: "input",
},
{
    label: "是否RF端菜单2",
    prop: "isrf",
    input: "select",
    optionsApi: "codelkup/INTLEAVTSK"
},
];

/**
 * 列表搜索表单配置
 * label：列表项名称
 * prop：列表项对应数据key
 * input：列表项搜索类型（input、select、dateTime）
 */
export const baseForm = [];


/**
 * 详情列表项
 * label：详情列表项名称
 * prop：详情列表项对应数据key
 * input：详情列表项搜索类型（input、select、dateTime）
 */
export const infoColumns = [
  {
    label: "角色名称",
    prop: "name",
    input: "input",
  },
  {
    label: "角色描述",
    prop: "description",
    input: "input",
  }
];

/**
 * 详情搜索表单配置
 * schemas：详情搜索项
 * rules：搜索项规则
 */
export const infoFormConfig = {
    schemas:[
        {
            type: "input",
            label: "用户名",
            props: "username",
            // disabled: this.addflag
        },
        {
            type: "input",
            label: "密码",
            inputType: "password",
            props: "password",
        },
        {
            type: "input",
            label: "确定密码",
            inputType: "password",
            props: "confirmPassword",
        },
        {
            type: "input",
            label: "全名",
            props: "fullname",
        },
        {
            type: "input",
            label: "邮箱",
            props: "email",
        }
    ],
    rules:{
        username: [
            {required: true, trigger: 'blur'},
        ],
        password: [
            {required: true, trigger: 'blur'},
        ],
        confirmPassword: [
            {required: true, trigger: 'blur'},
        ],
        fullname: [
            {required: true, trigger: 'blur'},
        ]
    }
}
